// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'ProductExpenseRecordDetailId',
        footer: "Foots",
        cnName: '生产费用明细',
        name: 'ProductExpenseRecordDetail',
        newTabEdit: false,
        url: "/ProductExpenseRecordDetail/",
        sortName: "ProductExpenseRecordDetailId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"DepartmentId":[],"ExpenseItemId":"","ExpenseAmount":""};
    const editFormOptions = [[{"dataKey":"部门级联","data":[],"title":"部门","required":true,"field":"DepartmentId","type":"cascader"},
                               {"dataKey":"费用项目","data":[],"title":"费用项目","required":true,"field":"ExpenseItemId","type":"select"},
                               {"title":"费用金额","required":true,"field":"ExpenseAmount","type":"decimal"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'ProductExpenseRecordDetailId',title:'成本费用明细标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductExpenseRecordId',title:'成本费用记录标识',type:'int',width:110,hidden:true,require:true,align:'left'},
                       {field:'DepartmentId',title:'部门',type:'guid',bind:{ key:'部门级联',data:[]},width:110,require:true,align:'left'},
                       {field:'ExpenseItemId',title:'费用项目',type:'int',bind:{ key:'费用项目',data:[]},width:110,require:true,align:'left'},
                       {field:'ExpenseAmount',title:'费用金额',type:'decimal',width:110,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}